Next | Prev | Up | Top | Contents | Index
Register
A register command is used to register a module for loading when its corresponding device is opened. When a module is registered, a stub function is entered into the appropriate kernel switch table. When the corresponding device is opened, the stub function loads the module into the kernel.
A module can be registered with the following lboot command:
% lboot -R <master>
A module can also be registered with the following ml command:
% ml ld [-v] -[cbBfm] module.o -p prefix [-s major...] \
[-a modname] [-t autounload_delay]
If a module is registered successfully with the ml command, an id number, which can be used to unregister the module, is returned.
Next | Prev | Up | Top | Contents | Index